package com.company.management.service.reward.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.company.management.domain.reward.ScoreLevel;
import com.company.management.mapper.reward.ScoreLevelMapper;
import com.company.management.service.reward.ScoreLevelService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @description:
 * @author: wangbin
 * @time: 2025/3/3
 **/

@Service
public class ScoreLevelServiceImpl extends ServiceImpl<ScoreLevelMapper, ScoreLevel> implements ScoreLevelService {

    private static final int MODULE = 5;
    @Override
    public List<ScoreLevel> findByFlag(Integer flag){
        return lambdaQuery().eq(ScoreLevel::getFlag,flag).eq(ScoreLevel::getModule,MODULE).list();
    }
}
